vcListReferenceProperty

A property that holds references to any number of objects.

See in: Overview

Module: vcCore

Parent: vcProperty

Children -

Referenced by: -

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
AllowedValuesvcListRGets a list of values accepted by this property.
TypevcReferencePropertyTypeRGets the property type.
ValuevcListRWGets or sets the property's value.
ValueTypeStringRGets the type of values accepted by this property.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
waitForobjectlist OR None value,
Optional Keyword[waitTrigger = Boolean]
Blocks script execution until vcProperty.Value is equal to the "value".
See more
This function returns an awaitable task. It must be awaited.

Parameters:
value (object): Value that is used for comparison. When the value is equal to vcProperty.Value, the task completes.
Optional: waitTrigger (boolean): False by default. When waitTrigger is True, the task will wait for the value to change first, before comparing it against "value". Otherwise, the comparison is done immediately and when the values match, the task will complete without blocking the script.

Returns:
Awaitable[List]: The task instance. When awaited, returns a list of event arguments that the event has been triggered with.
waitForNotobjectlist OR None value,
Optional Keyword[waitTrigger = Boolean]
Blocks script execution until vcProperty.Value is not equal to the "value".
See more
This function returns an awaitable task. It must be awaited.

Parameters:
value (object): Value that is used for comparison. When the value is not equal to vcProperty.Value, the task completes.
Optional: waitTrigger (boolean): False by default. When waitTrigger is True, the task will wait for the value to change first, before comparing it against "value". Otherwise, the comparison is done immediately and when the values do not match, the task will complete without blocking the script.

Returns:
Awaitable[List]: The task instance. When awaited, returns a list of event arguments that the event has been triggered with.

Example: Create Reference List Property

"""Create a property storing a list of component objects."""
import vcCore as vc
 
comp = vc.getComponent()
select_multiple_component = comp.Properties.create(vc.vcReferencePropertyType.LIST, 'Component', 'MyComponentList')